<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	template="/WEB-INF/templates/padrao.xhtml">
	<ui:define name="content">
		<h:form id="formSistemaHome">
			<p:panel header="Cadastro de sistemas" style="whidt:700px;">
				<h:panelGrid columns="2" id="painel" width="700">
					<h:outputText value="Sistema" />
					<p:selectOneMenu value="#{sistemaHome.sistema.id}" required="true"
						requiredMessage="o sistema deve ser informado" style="width:400px;">
						<f:selectItem itemLabel="Selecione o sistema" itemValue=""
							id="sistema" />
						<f:selectItems value="#{sistemaHome.sistemas}" var="sis"
							itemLabel="#{sis.nome}" itemValue="#{sis.id}" />
					</p:selectOneMenu>

				</h:panelGrid>
			</p:panel>
				<p:commandButton value="Salvar" action="#{sistemaHome.setarSistema}"
						update="painel" />

		</h:form>
	</ui:define>
</ui:composition>
